package com.lxyk.yygh.hosp.service;

import com.lxyk.yygh.model.hosp.Schedule;
import com.lxyk.yygh.vo.hosp.ScheduleOrderVo;
import com.lxyk.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    //上传排班
    void save(Map<String,Object> paramMap);
    //查询排班
    Page<Schedule> selectPage(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    //删除排班
    void remove(String hoscode, String hosScheduleId);

    //查询排班规则数据
    Map<String,Object> getRulesSchedule(long page,long limit,String hoscode,String deocide);

    //查询排班详情数据
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);

    /**
     * 获取排班可预约日期数据
     * @param page
     * @param limit
     * @param hoscode
     * @param depcode
     * @return
     */
    Map<String, Object> getBookingScheduleRule(int page, int limit, String hoscode, String depcode);

    /**
     * 根据排班id获取排班数据
     * @param scheduleId
     * @return
     */
    Schedule getScheduleId(String scheduleId);

    /**
     * 根据排班id获取预约下单数据
     * @param scheduleId
     * @return
     */
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    /**
     * 更新排班数据 用于mq
     */
    void update(Schedule schedule);
}
